from selenium import webdriver
from selenium.webdriver.common.by import By
from time import sleep

driver = webdriver.Edge()
driver.get('https://passport.vip.com/login')
driver.maximize_window()
sleep(2)
driver.find_element(By.XPATH,'/html/body/div[2]/div/div[1]/div[1]/div/div[2]/div[1]/div[2]/div[1]/div[1]/label').click()
sleep(1)
driver.find_element(By.XPATH,'/html/body/div[2]/div/div[1]/div[2]/div/div[3]/div[1]/ul/li[2]/a').click()
sleep(3)
# 切换页面
driver.switch_to.window(driver.window_handles[-1])
driver.switch_to.frame(driver.find_element(By.ID,'ptlogin_iframe'))
driver.find_element(By.ID,'img_out_1847537889').click()

sleep(10)
